export function validPhone(phone) {
  let reg = /^1[3456789]\d{9}$/;
  if (!reg.test(phone)) {
    return false;
  }
  return true;
}

export function validPassword(password) {
  const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[\s\S]{8,16}$/;
  if (!reg.test(password)) {
    return false;
  }
  return true;
}